package com.ibm.law.ui.common;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import com.ibm.law.domain.Model;

class CommonTableContentProvider implements IStructuredContentProvider {
	private Model model;

	public CommonTableContentProvider() {
		super();
		this.model = model;
	}

	

	public Object[] getElements(Object inputElement) {
		// init();
		if (inputElement instanceof List) {
			List list = (List) inputElement;
			return list.toArray();
		}
		return null;
		// return list.toArray();
	}

	public void dispose() {
	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}
}